package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    PageResult findPage(QueryPageBean queryPageBean);

    void add(Integer[] roleIds, User user);

    void deleteByUserId(Integer id);

    User findById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

    void edit(Integer[] roleIds, User user);

    User findByUsername(String username);

    List<Map> getMenuByUsername(String username);

    List<Map> getMenuByUsername2(String username);
}
